package _static;

/**
 * @author zk
 * @Description: TODO
 * @date 2019-10-27 14:10
 */
public class HireHouseProxy implements HireHouse {

    //被代理对象
    private HireHouse hh;

    public HireHouseProxy() {
    }

    public HireHouseProxy(HireHouse hh){
        this.hh = hh;
    }

    @Override
    public void hire() {
        System.out.println("交押金");
        hh.hire();
        System.out.println("签合同");
    }

    public void setHh(HireHouse hh) {
        this.hh = hh;
    }
}
